package com.ichina.chat.daoall;

public interface ObjectDao {
	
	public void saveOrUpdate(Object arg0)throws Exception;
	
	public void del(Object arg0)throws Exception;
	
	public Object load(Class class1,int id)throws Exception;
	
	public Object getAll(String hql)throws Exception;
	
	public int getAllCounte(String hql)throws Exception;
	
	public Object getHql(String hql)throws Exception;
	
	public Object getSql(String sql)throws Exception;
	
	public Object getHql(String hql,Object[] param);
	
	public Object getSql(String sql,Object[] param);
	
	public Object getAll(String hql,int cp,int pagesize)throws Exception;
	
	public void update(String sql)throws Exception;
}
